package ckf.man.practice.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import ckf.man.practice.entity.SchemeNew;
import ckf.man.practice.service.SchemeNewService;
import ckf.man.practice.mapper.SchemeNewMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
* @author 昌凯枫
* @description 针对表【scheme_new】的数据库操作Service实现
* @createDate 2024-07-18 13:44:25
*/
@Service
public class SchemeNewServiceImpl extends ServiceImpl<SchemeNewMapper, SchemeNew>
    implements SchemeNewService{
    @Autowired
    private SchemeNewMapper mapper;
    @Override
    public List<SchemeNew> selectByEquipment(int equipment_id) {
        return mapper.selectByEquipmentId(equipment_id);
    }

    @Override
    public List<SchemeNew> selectByLateralLine(int lateralLine_id) {
        return mapper.searchByLateralLineId(lateralLine_id);
    }

    @Override
    public List<SchemeNew> selectByEquipmentAndLateralLine(int equipment_id, int lateralLine_id) {
        return mapper.selectByEquipmentIdAndLateralLineId(equipment_id,lateralLine_id);
    }
}




